using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class ImageInfo
	{
		#region CONSTRUCTORS
		public ImageInfo()
		{
		
			this.m_imgID = Util.NULL_LONG;
			this.m_imgName = Util.NULL_STRING;
			this.m_categoryID = Util.NULL_INT;
			this.m_uRL1 = Util.NULL_STRING;
			this.m_uRL2 = Util.NULL_STRING;
			this.m_uRL3 = Util.NULL_STRING;
			this.m_uRL4 = Util.NULL_STRING;
			this.m_uRL5 = Util.NULL_STRING;
			this.m_mime = Util.NULL_STRING;
			this.m_location = Util.NULL_STRING;
			this.m_sMSCount = Util.NULL_LONG;
			this.m_createdBy = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_status = Util.NULL_BYTE;
		}
		public ImageInfo( long imgID,  string imgName,  int categoryID,  string uRL1,  string uRL2,  string uRL3,  string uRL4,  string uRL5,  string mime,  string location,  long sMSCount,  string createdBy,  DateTime createdDate,  byte status)
		{
		
			this.m_imgID = imgID;
			this.m_imgName = imgName;
			this.m_categoryID = categoryID;
			this.m_uRL1 = uRL1;
			this.m_uRL2 = uRL2;
			this.m_uRL3 = uRL3;
			this.m_uRL4 = uRL4;
			this.m_uRL5 = uRL5;
			this.m_mime = mime;
			this.m_location = location;
			this.m_sMSCount = sMSCount;
			this.m_createdBy = createdBy;
			this.m_createdDate = createdDate;
			this.m_status = status;
		}
		public ImageInfo( DataRow dRow)
		{
		
			this.m_imgID = (long) Util.ReplaceDBNullTo(dRow["imgID"], Util.NULL_LONG);
			this.m_imgName = Util.ReplaceDBNullTo(dRow["imgName"], Util.NULL_STRING).ToString();
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_uRL1 = Util.ReplaceDBNullTo(dRow["uRL1"], Util.NULL_STRING).ToString();
			this.m_uRL2 = Util.ReplaceDBNullTo(dRow["uRL2"], Util.NULL_STRING).ToString();
			this.m_uRL3 = Util.ReplaceDBNullTo(dRow["uRL3"], Util.NULL_STRING).ToString();
			this.m_uRL4 = Util.ReplaceDBNullTo(dRow["uRL4"], Util.NULL_STRING).ToString();
			this.m_uRL5 = Util.ReplaceDBNullTo(dRow["uRL5"], Util.NULL_STRING).ToString();
			this.m_mime = Util.ReplaceDBNullTo(dRow["mime"], Util.NULL_STRING).ToString();
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_sMSCount = (long) Util.ReplaceDBNullTo(dRow["sMSCount"], Util.NULL_LONG);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_imgID;
		private string m_imgName;
		private int m_categoryID;
		private string m_uRL1;
		private string m_uRL2;
		private string m_uRL3;
		private string m_uRL4;
		private string m_uRL5;
		private string m_mime;
		private string m_location;
		private long m_sMSCount;
		private string m_createdBy;
		private DateTime m_createdDate;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public long ImgID
		{
			get
			{
				return this.m_imgID;
			}
			set
			{
				this.m_imgID = value;
			}
		}
		
		public string ImgName
		{
			get
			{
				return this.m_imgName;
			}
			set
			{
				this.m_imgName = value;
			}
		}
		
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public string URL1
		{
			get
			{
				return this.m_uRL1;
			}
			set
			{
				this.m_uRL1 = value;
			}
		}
		
		public string URL2
		{
			get
			{
				return this.m_uRL2;
			}
			set
			{
				this.m_uRL2 = value;
			}
		}
		
		public string URL3
		{
			get
			{
				return this.m_uRL3;
			}
			set
			{
				this.m_uRL3 = value;
			}
		}
		
		public string URL4
		{
			get
			{
				return this.m_uRL4;
			}
			set
			{
				this.m_uRL4 = value;
			}
		}
		
		public string URL5
		{
			get
			{
				return this.m_uRL5;
			}
			set
			{
				this.m_uRL5 = value;
			}
		}
		
		public string Mime
		{
			get
			{
				return this.m_mime;
			}
			set
			{
				this.m_mime = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public long SMSCount
		{
			get
			{
				return this.m_sMSCount;
			}
			set
			{
				this.m_sMSCount = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}